import { post } from "../axios";


export const requestWXWebHook = async ({ url, msgtype, data }: { url: string; msgtype: 'text' | 'markdown' | 'image' | 'news'; data: any; }) => {
    return await post(url, { msgtype, [msgtype]: data }, {
        headers: {
            'Content-Type': 'application/json',
        },
    })
}